<?php

class Form_Remind extends Form_Ru
{

    public function init()
    {
        /* Form Elements & Other Definitions Here ... */
    }
    public function __construct() {
        $this->setName('form_reminde');
        parent::__construct();


        $username = new Zend_Form_Element_Text('mail');
        $username->setLabel('Email')
                ->setRequired(true)
                ->addValidator('EmailAddress')
                ->addValidator('Db_RecordExists',false,array(
                    'table'=>'lecbox_users',
                    'field'=>'email',
                ));
        $submit = new Zend_Form_Element_Submit('submit');
        $submit->setLabel('Восстановить')
                 ->setOptions(array('class'=>'btn'));



        $this->addElements(array($username,$submit));
    }

}

